<template>
  <div class="blank-container">
    <img :src="src" class="img" />
    <div class="tips">{{ tip }}</div>
    <slot></slot>
  </div>
</template>

<script>
import blankIcon from './blank.png';

export default {
  props: {
    src: {
      type: String,
      default: blankIcon,
    },
    tip: {
      type: String,
      default: '您还没有发起婚礼哟，速来创建婚礼～',
    },
  },
};
</script>

<style lang="less" scoped>
.blank-container {
  min-height: 60vh;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 14px;
  color: #666;
}
.img {
  max-width: 100%;
  width: 160px;
  display: block;
  margin: 0 auto;
  pointer-events: none;
  padding-bottom: 20px;
}
</style>